﻿using Common.Data.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Warranty.Configuration;
using Warranty.Model.Model;

namespace Warranty.DBConfig
{
    public class AddWMSinpLogConfiguration : DBConfig<AddWMSinpLog>
    {
        public AddWMSinpLogConfiguration()
            : base(SystemConfiguration.Schema, SystemConfiguration.NamingType, SystemConfiguration.TABLE_PREFIX)
        {
            HasKey(k => new { k.LotBox, k.Model, k.WorkOrder, k.Suffix });
            Property(c => c.LotBox).IsRequired();
            Property(c => c.Suffix).IsRequired();
            Property(c => c.Model).IsRequired();
            Property(c => c.WorkOrder).IsRequired();
        }
    }
}
